// @ts-check

// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)

/**
 * Creating a sidebar enables you to:
 - create an ordered group of docs
 - render a sidebar for each doc of that group
 - provide next/previous navigation

 The sidebars can be generated from the filesystem, or explicitly defined here.

 Create as many sidebars as you want.

 @type {import('@docusaurus/plugin-content-docs').SidebarsConfig}
 */
const sidebars = {
  // By default, Docusaurus generates a sidebar from the docs folder structure
  // tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],

  // But you can create a sidebar manually
  tutorialSidebar: [
    'intro',
    'installation',
    'usage-and-general-commands',
    'updates',
    'compatibility',
    {
      type: 'category',
      label: 'Command Docs',
      items: [{ type: 'autogenerated', dirName: 'command-docs' }]
    },
    {
      type: 'category',
      label: 'Concepts',
      items: [{ type: 'autogenerated', dirName: 'concepts' }]
    },
    {
      type: 'category',
      label: 'Extending',
      items: [{ type: 'autogenerated', dirName: 'extending' }]
    },
    {
      type: 'category',
      label: 'Hosting',
      items: [{ type: 'autogenerated', dirName: 'hosting' }]
    },
    {
      type: 'category',
      label: 'Contributing',
      items: [{ type: 'autogenerated', dirName: 'contributing' }]
    },
    {
      type: 'category',
      label: '3rd Party',
      items: [
        { type: 'autogenerated', dirName: '3rd-party' }
      ]
    },
    {
      type: 'category',
      label: 'Tips & Tricks',
      items: [
        { type: 'autogenerated', dirName: 'tips' }
      ]
    }
  ]
}

export default sidebars
